package SQL.abysnSQL;
import ErrorMsg.DBTypeNotMatchException;

public class StringValue extends ConstValue{
	public String string;
	
	public StringValue(String s){
		string = s;
	}
	@Override
	public float floatValue()throws DBTypeNotMatchException{
		throw new DBTypeNotMatchException(new Exception());
	}
	@Override
	public int intValue()throws DBTypeNotMatchException{
		throw new DBTypeNotMatchException(new Exception());
	}
	@Override
	public String stringValue() throws DBTypeNotMatchException {
		return string;
	}
	
	public String toString() {
		try {
			return this.stringValue()+"";
		} catch(Exception e) {
			e.printStackTrace();
			return null;
		}
	}
}
